package top.yehot.kettle.boot.models.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import top.yehot.cmm.util.mybatis.base.BaseTimeEntity;
import top.yehot.kettle.boot.enums.TaskRecordStatusEnum;

/**
 * 任务执行记录
 * 
 * @author lquan
 * @date 2022年6月6日 上午1:21:28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("k_task_record")
@ApiModel(value = "TaskRecord对象", description = "任务执行记录")
public class TaskRecord extends BaseTimeEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("记录ID")
    private String id;

    @ApiModelProperty("任务ID")
    private Integer taskId;

    @ApiModelProperty("启动时间")
    private LocalDateTime startTime;

    @ApiModelProperty("停止时间")
    private LocalDateTime stopTime;

    @ApiModelProperty("任务执行结果：N-失败，Y-成功，W-等待")
    private TaskRecordStatusEnum recordStatus;

    @ApiModelProperty("转换日志记录文件保存位置")
    private String logFilePath;

}
